<template>
  <Layout>
    <PageHeaderNew :items="items"></PageHeaderNew>
    <div class="row">
      <div class="col-md-4" v-for="(data, index) in statData" :key="index">
        <div class="card">
          <div class="card-body">
            <div class="media">
              <div class="media-body text-center overflow-hidden">
                <p class="text-truncate font-size-14 mb-2">{{ data.title }}</p>
                <h4 class="mb-0">{{ data.value }}</h4>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-lg-12">
        <div class="card">
          <div class="card-body">
            <div class="mt-2">
              <h5 class="font-size-14 mb-3">基本信息:</h5>
              <div class="product-desc">
                <div class="table-responsive">
                  <table class="table mb-0">
                    <tbody>
                      <tr>
                        <th scope="row" style="width: 400px;">真实服务器</th>
                        <td>realServer1</td>
                      </tr>
                      <tr>
                        <th scope="row">虚拟服务器</th>
                        <td>Server1</td>
                      </tr>
                      <tr>
                        <th scope="row">端口号</th>
                        <td>5366</td>
                      </tr>
                      <tr>
                        <th scope="row">别名</th>
                        <td>Cotton</td>
                      </tr>
                      <tr>
                        <th scope="row">用户/密码</th>
                        <td>admin/123456</td>
                      </tr>
                      <tr>
                        <th scope="row">安装路径</th>
                        <td>Cotton</td>
                      </tr>
                      <tr>
                        <th scope="row">日志输出路径</th>
                        <td>Cotton</td>
                      </tr>
                      <tr>
                        <th scope="row">计算环境</th>
                        <td>测试环境</td>
                      </tr>
                      <tr>
                        <th scope="row">备注</th>
                        <td>应用服务器是指通过各种协议把商业逻辑曝露给客户端的程序。它提供了访问商业逻辑的途径以供客户端应用程序使用。应用服务器使用此商业逻辑就像调用对象的一个方法一样。</td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </Layout>
</template>
<script>
import Layout from "../../layouts/main";
import PageHeaderNew from "@/components/page-header-new";
export default {
  components: {
    Layout,
    PageHeaderNew,
  },
  data () {
    return {
      items: [
        {
          text: "计算资源",
          url: "/computing",
        },{
          text: "应用服务器详情",
          url: "/",
        }
      ],
      statData: [
        {
          title: "CPU",
          icon: "ri-stack-line",
          value: "48核",
        },
        {
          title: "内存",
          icon: "ri-store-2-line",
          value: "512G",
        },
        {
          title: "磁盘",
          icon: "ri-briefcase-4-line",
          value: "4TB",
        },
      ],
    }
  }
}
</script>
<style lang="scss" scoped>

</style>
